import { createRouter, createWebHashHistory } from "vue-router";
import index from "@/pages/index.vue";
import login from "@/pages/login.vue";
import complaint from "@/pages/complaint.vue";
import enterprise from "@/pages/enterprise.vue";
import register from "@/pages/register.vue";
import help from "@/pages/help.vue";
import newNotice from "@/pages/newNotice.vue";
import txt from "@/pages/newNoticeTxt.vue";
import my from "@/pages/my.vue";
let router = createRouter({
  history: createWebHashHistory(import.meta.env.VITE_BASE_PATH as string),
  routes: [
    {
      path: '/',
      component: index,
    },
    {
      path: '/enterprise',
      component: enterprise,
    },
    {
      path: '/complaint',
      component: complaint,
    },
    {
      path: '/my',
      component: my,
    },
    {
      path: '/register',
      component: register,
    },
    {
      path: '/login',
      component: login,
    },
    {
      path: '/help',
      component: help,
    },
    {
      path: '/newNotice',
      component: newNotice,
      children: [{
        path: '/txt',
        component: txt,
      }]
    },
    {
      path: "/aa/txt",
      component: txt,
    }
  ]
})

export default router